Contents | < Browse | Browse >
ASK [question]
* ASK prompts the user with a question requiring a Yes or No
answer. If the first letter of the users response is "Y", ASK
returns code WARN. Responding "E" returns ERROR, "F" returns
FAIL. Any other letter will result in return code OK.
The question can include ASCII characters as well as control
codes as per the ECHO command.
eg. ask "Do you want commands copied to ram? "
if warn
copy c: ram:
endif
Note: You can redirect the ANSWER to a file by redirecting the OUTPUT.
eg. ask >ENV:CallIt {The answer is written to CallIt}